package com.xjrh.traintravel.collector.netty.command.upgrade;

import com.xjrh.traintravel.collector.netty.command.BaseCommand;

import java.io.Serializable;

/**
 * 升级文件-命令响应
 *
 * @author snps
 * @create 2022-02-18 15:31
 * @describe
 **/
public class UpgradeFileApply extends BaseCommand implements Serializable {

    private static final long serialVersionUID = -2272898519798208172L;


    /**
     * 升级类型
     *      0-主机
     *      1-DSP
     *      2-前置
     */
    private int type;

    /**
     * 升级应答（结果）
     *      00-正常
     *      01-异常
     */
    private int result;

    /**
     * 升级结束标记
     *      0-未结束
     *      1-结束
     */
    private int upgradeEndFlag;


    /*****************************************
     * Getter and Setter
     */
    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public int getUpgradeEndFlag() {
        return upgradeEndFlag;
    }

    public void setUpgradeEndFlag(int upgradeEndFlag) {
        this.upgradeEndFlag = upgradeEndFlag;
    }


    @Override
    public String toString() {
        return "UpgradeFileApply{" +
                "type=" + type +
                ", result=" + result +
                ", upgradeEndFlag=" + upgradeEndFlag +
                '}';
    }

}